<style>
    form{
        margin: 0px 20px 20px 20px;
    }
    form div{
        font-size: 18px;
        margin: 10px 10px 10px 10px;
    }
</style>
<!--<div class="card-header">-->
<!--    <a class="btn   btn-outline-primary btn-sm "  id="checkAll" >全选</a>-->
<!--    <a class="btn   btn-outline-danger btn-sm"  id="uncheckAll">反选</a>-->
<!--</div>-->
<form role="form" class="epii" method="post" data-form="1" action="{url profit_schedule add_edit }">
    {foreach $info as $k=>$v}
    <div class="form-check form-check-inline">
        <input class="form-check-input checkbox" type="radio" id="{$k}" name="r[]" value="{$v.id}" {$v['checked']}>
        <label class="form-check-label" for="{$k}">{$v['profit_schedule_name']}</label>
    </div>
    <br>
    {/foreach}


    <input type="hidden" name="week" value="{$week}">
    <input type="hidden" name="today" value="{$today}">
    <div class="form-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</form>
<script>
    window.onEpiiInit(function() {
        // 全选
        $("#checkAll").on("click", function() {
            $(".checkbox").prop("checked", true);
        });

        // 反选
        $("#uncheckAll").on("click", function() {
            $(".checkbox").prop("checked", false);
        });
    });
</script>
